package com.zjq.dao;

import com.sun.org.apache.xpath.internal.operations.Or;
import com.zjq.pojo.Address;
import com.zjq.pojo.Order;
import com.zjq.pojo.OrderList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderListMapper {
    int addOrder(Order order);

    int addOrderList(OrderList orderList);

    int addAddress(Address address);

    List<Order> queryOrder(@Param("userId") int id);

    Order queryOrderById(@Param("orderId") int id);

    List<Order> queryAllOrder();

    Order queryOrderListDetailById(@Param("id") int id);
}
